package com.tsmti.system.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * @Package：com.tsmti.system.entity
 * @Class：ReportTemplate
 * @Description： TODO
 * @Author：zcw
 * @Date：Created in 2018/6/12 11:59
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name = "pims_Bill_Template")
@DynamicInsert
@DynamicUpdate
@Where(clause = "delFlag = 0")
public class BillTemplate extends BaseDataEntity<Long>{
    private Long id;
    private String name;
    private String content;
    private Integer enable;
    private String description;
    private String code;

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_BillTemplate")
    @SequenceGenerator(name = "SEQ_BillTemplate", sequenceName = "BillTemplate_SEQUENCE", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "CONTENT", columnDefinition = "CLOB")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
